<template>
  <div class="header">
    <div class="header-left">
      <div class="company">
        <SelectCompany></SelectCompany>
      </div>
      <div class="time">
        <SelectDate></SelectDate>
      </div>
    </div>
    <div class="header-center">
      <div class="title">{{ orgName }}精准巡查任务调度看板</div>
    </div>
    <div class="header-right">
      <FullScreen />
    </div>
  </div>
</template>

<script setup>
import { ref, computed } from 'vue'
import SelectCompany from '../SelectCompany.vue'
import SelectDate from '../SelectDate.vue'
import { useRoute } from 'vue-router'

const route = useRoute()
const orgName = computed(() => decodeURIComponent(route.query.orgName))
</script>

<style scoped lang="scss">
.header {
  font-size: 18px;
  padding: 0 20px;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  display: flex;

  &-left {
    width: 400px;
    display: flex;
    justify-self: flex-start;

    .time {
      margin-left: 20px;
    }
  }

  &-center {
    flex: 1;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    font-family: '微软雅黑 Bold', '微软雅黑', sans-serif;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    line-height: normal;
    font-size: 24px;
  }

  &-right {
    width: 400px;
    display: flex;
    justify-content: flex-end;
  }
}
</style>
